@lssm-tech/lib.ui-kit-web 3.13.4 → 9.0.2
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/README.md +112 -23
- package/package.json +1341 -843
- package/dist/browser/index.js +0 -1
- package/dist/browser/ui/accordion.js +0 -1
- package/dist/browser/ui/alert-dialog.js +0 -1
- package/dist/browser/ui/alert.js +0 -1
- package/dist/browser/ui/aspect-ratio.js +0 -1
- package/dist/browser/ui/atoms/FilterSelect/FilterSelect.js +0 -1
- package/dist/browser/ui/atoms/FilterSelect/index.js +0 -1
- package/dist/browser/ui/atoms/FilterSelect/types.js +0 -0
- package/dist/browser/ui/atoms/LoadingSpinner/LoadingSpinner.js +0 -1
- package/dist/browser/ui/atoms/LoadingSpinner/index.js +0 -1
- package/dist/browser/ui/atoms/Pagination/Pagination.js +0 -1
- package/dist/browser/ui/atoms/Pagination/index.js +0 -1
- package/dist/browser/ui/atoms/Pagination/types.js +0 -0
- package/dist/browser/ui/atoms/SearchInput/SearchInput.js +0 -1
- package/dist/browser/ui/atoms/SearchInput/index.js +0 -1
- package/dist/browser/ui/atoms/SearchInput/types.js +0 -0
- package/dist/browser/ui/avatar.js +0 -1
- package/dist/browser/ui/badge.js +0 -1
- package/dist/browser/ui/breadcrumb.js +0 -1
- package/dist/browser/ui/button-group.js +0 -1
- package/dist/browser/ui/button.js +0 -1
- package/dist/browser/ui/calendar.js +0 -1
- package/dist/browser/ui/card.js +0 -1
- package/dist/browser/ui/carousel.js +0 -1
- package/dist/browser/ui/chart.js +0 -1
- package/dist/browser/ui/checkbox.js +0 -1
- package/dist/browser/ui/collapsible.js +0 -1
- package/dist/browser/ui/combobox.js +0 -1
- package/dist/browser/ui/command.js +0 -1
- package/dist/browser/ui/confirm-dialog.js +0 -1
- package/dist/browser/ui/context-menu.js +0 -1
- package/dist/browser/ui/contracts.typecheck.js +0 -0
- package/dist/browser/ui/cta.js +0 -1
- package/dist/browser/ui/data-table.js +0 -1
- package/dist/browser/ui/data-table.parts.js +0 -1
- package/dist/browser/ui/date-picker.js +0 -1
- package/dist/browser/ui/date-range-picker.js +0 -1
- package/dist/browser/ui/datetime-picker.js +0 -1
- package/dist/browser/ui/dialog.js +0 -1
- package/dist/browser/ui/direction.js +0 -1
- package/dist/browser/ui/drawer.js +0 -1
- package/dist/browser/ui/dropdown-menu.js +0 -1
- package/dist/browser/ui/empty-state.js +0 -1
- package/dist/browser/ui/empty.js +0 -1
- package/dist/browser/ui/field.js +0 -1
- package/dist/browser/ui/focus-on-route-change.js +0 -1
- package/dist/browser/ui/form.js +0 -1
- package/dist/browser/ui/hover-card.js +0 -1
- package/dist/browser/ui/input-group.js +0 -1
- package/dist/browser/ui/input-otp.js +0 -1
- package/dist/browser/ui/input-password.js +0 -1
- package/dist/browser/ui/input.js +0 -1
- package/dist/browser/ui/item.js +0 -1
- package/dist/browser/ui/kbd.js +0 -1
- package/dist/browser/ui/label.js +0 -1
- package/dist/browser/ui/link.js +0 -1
- package/dist/browser/ui/list.js +0 -1
- package/dist/browser/ui/live-region.js +0 -1
- package/dist/browser/ui/loading-button.js +0 -1
- package/dist/browser/ui/map/MapBase.js +0 -1
- package/dist/browser/ui/map/MapGeoJsonOverlay.js +0 -1
- package/dist/browser/ui/map/MapHeatmapH3.js +0 -1
- package/dist/browser/ui/map/MapMarkers.js +0 -1
- package/dist/browser/ui/map/index.js +0 -1
- package/dist/browser/ui/marketing/FeatureGrid.js +0 -1
- package/dist/browser/ui/marketing/Hero.js +0 -1
- package/dist/browser/ui/marketing/PricingTable.js +0 -1
- package/dist/browser/ui/marketing/index.js +0 -1
- package/dist/browser/ui/menubar.js +0 -1
- package/dist/browser/ui/molecules/Autocomplete/index.js +0 -1
- package/dist/browser/ui/molecules/SearchAndFilter/SearchAndFilter.js +0 -1
- package/dist/browser/ui/molecules/SearchAndFilter/index.js +0 -1
- package/dist/browser/ui/molecules/SearchAndFilter/types.js +0 -0
- package/dist/browser/ui/molecules/SkeletonList.js +0 -1
- package/dist/browser/ui/native-select.js +0 -1
- package/dist/browser/ui/nav-layout.js +0 -1
- package/dist/browser/ui/navigation-menu.js +0 -1
- package/dist/browser/ui/organisms/ErrorBoundary/ErrorBoundary.js +0 -1
- package/dist/browser/ui/organisms/ErrorBoundary/index.js +0 -1
- package/dist/browser/ui/organisms/ListPage/ListPage.js +0 -1
- package/dist/browser/ui/organisms/ListPage/index.js +0 -1
- package/dist/browser/ui/organisms/ListPage/types.js +0 -0
- package/dist/browser/ui/page-header.js +0 -1
- package/dist/browser/ui/pagination.js +0 -1
- package/dist/browser/ui/popover.js +0 -1
- package/dist/browser/ui/progress.js +0 -1
- package/dist/browser/ui/radio-group.js +0 -1
- package/dist/browser/ui/resizable.js +0 -1
- package/dist/browser/ui/route-announcer.js +0 -1
- package/dist/browser/ui/scroll-area.js +0 -1
- package/dist/browser/ui/section.js +0 -1
- package/dist/browser/ui/select.js +0 -1
- package/dist/browser/ui/separator.js +0 -1
- package/dist/browser/ui/sheet.js +0 -1
- package/dist/browser/ui/sidebar.js +0 -1
- package/dist/browser/ui/skeleton.js +0 -1
- package/dist/browser/ui/skip-link.js +0 -1
- package/dist/browser/ui/slider.js +0 -1
- package/dist/browser/ui/sonner.js +0 -1
- package/dist/browser/ui/spinner.js +0 -1
- package/dist/browser/ui/stack.js +0 -1
- package/dist/browser/ui/stat-card-group.js +0 -1
- package/dist/browser/ui/stepper.js +0 -1
- package/dist/browser/ui/switch.js +0 -1
- package/dist/browser/ui/table.js +0 -1
- package/dist/browser/ui/tabs.js +0 -1
- package/dist/browser/ui/text.js +0 -1
- package/dist/browser/ui/textarea.js +0 -1
- package/dist/browser/ui/time-picker.js +0 -1
- package/dist/browser/ui/toast.js +0 -1
- package/dist/browser/ui/toaster.js +0 -1
- package/dist/browser/ui/toggle-group.js +0 -1
- package/dist/browser/ui/toggle.js +0 -1
- package/dist/browser/ui/tooltip.js +0 -1
- package/dist/browser/ui/typography.js +0 -1
- package/dist/browser/ui/use-media-query.js +0 -1
- package/dist/browser/ui/use-mobile.js +0 -1
- package/dist/browser/ui/use-reduced-motion.js +0 -1
- package/dist/browser/ui/use-toast.js +0 -1
- package/dist/browser/ui/useListState.js +0 -1
- package/dist/browser/ui/usecases/UseCaseCard.js +0 -1
- package/dist/browser/ui/usecases/UserStoryCard.js +0 -1
- package/dist/browser/ui/usecases/index.js +0 -1
- package/dist/browser/ui/utils.js +0 -1
- package/dist/browser/ui/visualization/Visualization.js +0 -1
- package/dist/browser/ui/visualization/Visualization.support.js +0 -1
- package/dist/browser/ui/visualization/index.js +0 -1
- package/dist/browser/ui/visually-hidden.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -2
- package/dist/ui/accordion.d.ts +0 -7
- package/dist/ui/accordion.js +0 -2
- package/dist/ui/alert-dialog.d.ts +0 -14
- package/dist/ui/alert-dialog.js +0 -2
- package/dist/ui/alert.d.ts +0 -9
- package/dist/ui/alert.js +0 -2
- package/dist/ui/aspect-ratio.d.ts +0 -3
- package/dist/ui/aspect-ratio.js +0 -2
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +0 -3
- package/dist/ui/atoms/FilterSelect/FilterSelect.js +0 -2
- package/dist/ui/atoms/FilterSelect/index.d.ts +0 -2
- package/dist/ui/atoms/FilterSelect/index.js +0 -2
- package/dist/ui/atoms/FilterSelect/types.d.ts +0 -5
- package/dist/ui/atoms/FilterSelect/types.js +0 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +0 -19
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +0 -2
- package/dist/ui/atoms/LoadingSpinner/index.d.ts +0 -1
- package/dist/ui/atoms/LoadingSpinner/index.js +0 -2
- package/dist/ui/atoms/Pagination/Pagination.d.ts +0 -3
- package/dist/ui/atoms/Pagination/Pagination.js +0 -2
- package/dist/ui/atoms/Pagination/index.d.ts +0 -2
- package/dist/ui/atoms/Pagination/index.js +0 -2
- package/dist/ui/atoms/Pagination/types.d.ts +0 -3
- package/dist/ui/atoms/Pagination/types.js +0 -1
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts +0 -3
- package/dist/ui/atoms/SearchInput/SearchInput.js +0 -2
- package/dist/ui/atoms/SearchInput/index.d.ts +0 -2
- package/dist/ui/atoms/SearchInput/index.js +0 -2
- package/dist/ui/atoms/SearchInput/types.d.ts +0 -3
- package/dist/ui/atoms/SearchInput/types.js +0 -1
- package/dist/ui/avatar.d.ts +0 -6
- package/dist/ui/avatar.js +0 -2
- package/dist/ui/badge.d.ts +0 -9
- package/dist/ui/badge.js +0 -2
- package/dist/ui/breadcrumb.d.ts +0 -11
- package/dist/ui/breadcrumb.js +0 -2
- package/dist/ui/button-group.d.ts +0 -5
- package/dist/ui/button-group.js +0 -2
- package/dist/ui/button.d.ts +0 -17
- package/dist/ui/button.js +0 -2
- package/dist/ui/calendar.d.ts +0 -8
- package/dist/ui/calendar.js +0 -2
- package/dist/ui/card.d.ts +0 -9
- package/dist/ui/card.js +0 -2
- package/dist/ui/carousel.d.ts +0 -19
- package/dist/ui/carousel.js +0 -2
- package/dist/ui/chart.d.ts +0 -45
- package/dist/ui/chart.js +0 -2
- package/dist/ui/checkbox.d.ts +0 -4
- package/dist/ui/checkbox.js +0 -2
- package/dist/ui/collapsible.d.ts +0 -5
- package/dist/ui/collapsible.js +0 -2
- package/dist/ui/combobox.d.ts +0 -32
- package/dist/ui/combobox.js +0 -2
- package/dist/ui/combobox.test.d.ts +0 -1
- package/dist/ui/command.d.ts +0 -18
- package/dist/ui/command.js +0 -2
- package/dist/ui/confirm-dialog.d.ts +0 -14
- package/dist/ui/confirm-dialog.js +0 -2
- package/dist/ui/context-menu.d.ts +0 -31
- package/dist/ui/context-menu.js +0 -2
- package/dist/ui/contracts.typecheck.d.ts +0 -1
- package/dist/ui/contracts.typecheck.js +0 -1
- package/dist/ui/cta.d.ts +0 -12
- package/dist/ui/cta.js +0 -2
- package/dist/ui/data-table.d.ts +0 -8
- package/dist/ui/data-table.js +0 -2
- package/dist/ui/data-table.parts.d.ts +0 -19
- package/dist/ui/data-table.parts.js +0 -2
- package/dist/ui/data-table.test.d.ts +0 -1
- package/dist/ui/date-picker.d.ts +0 -5
- package/dist/ui/date-picker.js +0 -2
- package/dist/ui/date-range-picker.d.ts +0 -6
- package/dist/ui/date-range-picker.js +0 -2
- package/dist/ui/datetime-picker.d.ts +0 -6
- package/dist/ui/datetime-picker.js +0 -2
- package/dist/ui/dialog.d.ts +0 -15
- package/dist/ui/dialog.js +0 -2
- package/dist/ui/direction.d.ts +0 -9
- package/dist/ui/direction.js +0 -2
- package/dist/ui/drawer.d.ts +0 -13
- package/dist/ui/drawer.js +0 -2
- package/dist/ui/dropdown-menu.d.ts +0 -25
- package/dist/ui/dropdown-menu.js +0 -2
- package/dist/ui/empty-state.d.ts +0 -9
- package/dist/ui/empty-state.js +0 -2
- package/dist/ui/empty.d.ts +0 -12
- package/dist/ui/empty.js +0 -2
- package/dist/ui/field.d.ts +0 -20
- package/dist/ui/field.js +0 -2
- package/dist/ui/focus-on-route-change.d.ts +0 -3
- package/dist/ui/focus-on-route-change.js +0 -2
- package/dist/ui/form.d.ts +0 -26
- package/dist/ui/form.js +0 -2
- package/dist/ui/hover-card.d.ts +0 -6
- package/dist/ui/hover-card.js +0 -2
- package/dist/ui/input-group.d.ts +0 -18
- package/dist/ui/input-group.js +0 -2
- package/dist/ui/input-otp.d.ts +0 -16
- package/dist/ui/input-otp.js +0 -2
- package/dist/ui/input-password.d.ts +0 -11
- package/dist/ui/input-password.js +0 -2
- package/dist/ui/input-password.test.d.ts +0 -1
- package/dist/ui/input.d.ts +0 -7
- package/dist/ui/input.js +0 -2
- package/dist/ui/item.d.ts +0 -23
- package/dist/ui/item.js +0 -2
- package/dist/ui/kbd.d.ts +0 -3
- package/dist/ui/kbd.js +0 -2
- package/dist/ui/label.d.ts +0 -4
- package/dist/ui/label.js +0 -2
- package/dist/ui/link.d.ts +0 -6
- package/dist/ui/link.js +0 -2
- package/dist/ui/list.d.ts +0 -20
- package/dist/ui/list.js +0 -2
- package/dist/ui/live-region.d.ts +0 -10
- package/dist/ui/live-region.js +0 -2
- package/dist/ui/loading-button.d.ts +0 -9
- package/dist/ui/loading-button.js +0 -2
- package/dist/ui/map/MapBase.d.ts +0 -22
- package/dist/ui/map/MapBase.js +0 -2
- package/dist/ui/map/MapGeoJsonOverlay.d.ts +0 -10
- package/dist/ui/map/MapGeoJsonOverlay.js +0 -2
- package/dist/ui/map/MapHeatmapH3.d.ts +0 -12
- package/dist/ui/map/MapHeatmapH3.js +0 -2
- package/dist/ui/map/MapMarkers.d.ts +0 -12
- package/dist/ui/map/MapMarkers.js +0 -2
- package/dist/ui/map/index.d.ts +0 -4
- package/dist/ui/map/index.js +0 -2
- package/dist/ui/marketing/FeatureGrid.d.ts +0 -4
- package/dist/ui/marketing/FeatureGrid.js +0 -2
- package/dist/ui/marketing/Hero.d.ts +0 -16
- package/dist/ui/marketing/Hero.js +0 -2
- package/dist/ui/marketing/PricingTable.d.ts +0 -4
- package/dist/ui/marketing/PricingTable.js +0 -2
- package/dist/ui/marketing/index.d.ts +0 -3
- package/dist/ui/marketing/index.js +0 -2
- package/dist/ui/menubar.d.ts +0 -26
- package/dist/ui/menubar.js +0 -2
- package/dist/ui/molecules/Autocomplete/index.d.ts +0 -1
- package/dist/ui/molecules/Autocomplete/index.js +0 -2
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +0 -3
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +0 -2
- package/dist/ui/molecules/SearchAndFilter/index.d.ts +0 -2
- package/dist/ui/molecules/SearchAndFilter/index.js +0 -2
- package/dist/ui/molecules/SearchAndFilter/types.d.ts +0 -3
- package/dist/ui/molecules/SearchAndFilter/types.js +0 -1
- package/dist/ui/molecules/SkeletonList.d.ts +0 -7
- package/dist/ui/molecules/SkeletonList.js +0 -2
- package/dist/ui/native-select.d.ts +0 -4
- package/dist/ui/native-select.js +0 -2
- package/dist/ui/nav-layout.d.ts +0 -47
- package/dist/ui/nav-layout.js +0 -2
- package/dist/ui/navigation-menu.d.ts +0 -14
- package/dist/ui/navigation-menu.js +0 -2
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +0 -25
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +0 -2
- package/dist/ui/organisms/ErrorBoundary/index.d.ts +0 -2
- package/dist/ui/organisms/ErrorBoundary/index.js +0 -2
- package/dist/ui/organisms/ListPage/ListPage.d.ts +0 -2
- package/dist/ui/organisms/ListPage/ListPage.js +0 -2
- package/dist/ui/organisms/ListPage/index.d.ts +0 -2
- package/dist/ui/organisms/ListPage/index.js +0 -2
- package/dist/ui/organisms/ListPage/types.d.ts +0 -37
- package/dist/ui/organisms/ListPage/types.js +0 -1
- package/dist/ui/page-header.d.ts +0 -9
- package/dist/ui/page-header.js +0 -2
- package/dist/ui/pagination.d.ts +0 -17
- package/dist/ui/pagination.js +0 -2
- package/dist/ui/popover.d.ts +0 -7
- package/dist/ui/popover.js +0 -2
- package/dist/ui/progress.d.ts +0 -4
- package/dist/ui/progress.js +0 -2
- package/dist/ui/radio-group.d.ts +0 -5
- package/dist/ui/radio-group.js +0 -2
- package/dist/ui/resizable.d.ts +0 -8
- package/dist/ui/resizable.js +0 -2
- package/dist/ui/route-announcer.d.ts +0 -3
- package/dist/ui/route-announcer.js +0 -2
- package/dist/ui/scroll-area.d.ts +0 -5
- package/dist/ui/scroll-area.js +0 -2
- package/dist/ui/section.d.ts +0 -15
- package/dist/ui/section.js +0 -2
- package/dist/ui/select.d.ts +0 -15
- package/dist/ui/select.js +0 -2
- package/dist/ui/select.test.d.ts +0 -1
- package/dist/ui/separator.d.ts +0 -4
- package/dist/ui/separator.js +0 -2
- package/dist/ui/sheet.d.ts +0 -13
- package/dist/ui/sheet.js +0 -2
- package/dist/ui/sidebar.d.ts +0 -69
- package/dist/ui/sidebar.js +0 -2
- package/dist/ui/skeleton.d.ts +0 -3
- package/dist/ui/skeleton.js +0 -2
- package/dist/ui/skip-link.d.ts +0 -7
- package/dist/ui/skip-link.js +0 -2
- package/dist/ui/slider.d.ts +0 -4
- package/dist/ui/slider.js +0 -2
- package/dist/ui/sonner.d.ts +0 -3
- package/dist/ui/sonner.js +0 -2
- package/dist/ui/spinner.d.ts +0 -5
- package/dist/ui/spinner.js +0 -2
- package/dist/ui/stack.d.ts +0 -35
- package/dist/ui/stack.js +0 -2
- package/dist/ui/stat-card-group.d.ts +0 -10
- package/dist/ui/stat-card-group.js +0 -2
- package/dist/ui/stepper.d.ts +0 -10
- package/dist/ui/stepper.js +0 -2
- package/dist/ui/switch.d.ts +0 -6
- package/dist/ui/switch.js +0 -2
- package/dist/ui/table.d.ts +0 -10
- package/dist/ui/table.js +0 -2
- package/dist/ui/tabs.d.ts +0 -7
- package/dist/ui/tabs.js +0 -2
- package/dist/ui/text.d.ts +0 -6
- package/dist/ui/text.js +0 -2
- package/dist/ui/textarea.d.ts +0 -5
- package/dist/ui/textarea.js +0 -2
- package/dist/ui/time-picker.d.ts +0 -4
- package/dist/ui/time-picker.js +0 -2
- package/dist/ui/toast.d.ts +0 -28
- package/dist/ui/toast.js +0 -2
- package/dist/ui/toaster.d.ts +0 -1
- package/dist/ui/toaster.js +0 -2
- package/dist/ui/toggle-group.d.ts +0 -7
- package/dist/ui/toggle-group.js +0 -2
- package/dist/ui/toggle.d.ts +0 -9
- package/dist/ui/toggle.js +0 -2
- package/dist/ui/tooltip.d.ts +0 -7
- package/dist/ui/tooltip.js +0 -2
- package/dist/ui/typography.d.ts +0 -16
- package/dist/ui/typography.js +0 -2
- package/dist/ui/use-media-query.d.ts +0 -1
- package/dist/ui/use-media-query.js +0 -2
- package/dist/ui/use-mobile.d.ts +0 -1
- package/dist/ui/use-mobile.js +0 -2
- package/dist/ui/use-reduced-motion.d.ts +0 -1
- package/dist/ui/use-reduced-motion.js +0 -2
- package/dist/ui/use-toast.d.ts +0 -44
- package/dist/ui/use-toast.js +0 -2
- package/dist/ui/useListState.d.ts +0 -6
- package/dist/ui/useListState.js +0 -2
- package/dist/ui/usecases/UseCaseCard.d.ts +0 -7
- package/dist/ui/usecases/UseCaseCard.js +0 -2
- package/dist/ui/usecases/UserStoryCard.d.ts +0 -5
- package/dist/ui/usecases/UserStoryCard.js +0 -2
- package/dist/ui/usecases/index.d.ts +0 -2
- package/dist/ui/usecases/index.js +0 -2
- package/dist/ui/utils.d.ts +0 -2
- package/dist/ui/utils.js +0 -2
- package/dist/ui/visualization/Visualization.d.ts +0 -7
- package/dist/ui/visualization/Visualization.js +0 -2
- package/dist/ui/visualization/Visualization.support.d.ts +0 -15
- package/dist/ui/visualization/Visualization.support.js +0 -2
- package/dist/ui/visualization/index.d.ts +0 -1
- package/dist/ui/visualization/index.js +0 -2
- package/dist/ui/visually-hidden.d.ts +0 -8
- package/dist/ui/visually-hidden.js +0 -2
package/dist/ui/nav-layout.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger } from './navigation-menu';
|
|
3
|
-
export declare const navPanelVariants: (props?: ({
|
|
4
|
-
width?: "sm" | "lg" | "md" | "full" | null | undefined;
|
|
5
|
-
padding?: "none" | "sm" | "md" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
export interface NavPanelProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
8
|
-
width?: 'sm' | 'md' | 'lg' | 'full';
|
|
9
|
-
padding?: 'none' | 'sm' | 'md';
|
|
10
|
-
}
|
|
11
|
-
export declare function NavPanel({ width, padding, className, ...props }: NavPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare function NavSimpleList({ title, items, }: {
|
|
13
|
-
title?: React.ReactNode;
|
|
14
|
-
items: {
|
|
15
|
-
href: string;
|
|
16
|
-
label: string;
|
|
17
|
-
description?: string;
|
|
18
|
-
}[];
|
|
19
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export declare function NavColumns({ columns, }: {
|
|
21
|
-
columns: {
|
|
22
|
-
title?: string;
|
|
23
|
-
items: {
|
|
24
|
-
href: string;
|
|
25
|
-
label: string;
|
|
26
|
-
description?: string;
|
|
27
|
-
}[];
|
|
28
|
-
}[];
|
|
29
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export declare function NavCategorizedWithPreview({ categories, modules, activeCategory, setActiveCategory, activeKey: _activeKey, setActiveKey, preview, }: {
|
|
31
|
-
categories: {
|
|
32
|
-
key: string;
|
|
33
|
-
label: string;
|
|
34
|
-
}[];
|
|
35
|
-
modules: {
|
|
36
|
-
key: string;
|
|
37
|
-
title: string;
|
|
38
|
-
description?: string;
|
|
39
|
-
categories: string[];
|
|
40
|
-
}[];
|
|
41
|
-
activeCategory: string;
|
|
42
|
-
setActiveCategory: (k: string) => void;
|
|
43
|
-
activeKey: string | null;
|
|
44
|
-
setActiveKey: (k: string | null) => void;
|
|
45
|
-
preview: React.ReactNode;
|
|
46
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
47
|
-
export { NavigationMenu as NavRoot, NavigationMenuContent as NavContent, NavigationMenuItem as NavItem, NavigationMenuLink as NavLink, NavigationMenuList as NavList, NavigationMenuTrigger as NavTrigger, };
|
package/dist/ui/nav-layout.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var h=import.meta.require;import{cn as J}from"@contractspec/lib.ui-kit-core/utils";import*as G from"@radix-ui/react-navigation-menu";import{cva as Z}from"class-variance-authority";import{ChevronDownIcon as _}from"lucide-react";import{jsx as H,jsxs as U}from"react/jsx-runtime";function $({className:q,children:f,viewport:B=!0,...E}){return U(G.Root,{"data-slot":"navigation-menu","data-viewport":B,className:J("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",q),...E,children:[f,B&&H(I,{})]})}function D({className:q,...f}){return H(G.List,{"data-slot":"navigation-menu-list",className:J("group flex flex-1 list-none items-center justify-center gap-1",q),...f})}function P({className:q,...f}){return H(G.Item,{"data-slot":"navigation-menu-item",className:J("relative",q),...f})}var S=Z("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 font-medium text-sm outline-hidden transition-[color,box-shadow] hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:hover:bg-accent");function b({className:q,children:f,...B}){return U(G.Trigger,{"data-slot":"navigation-menu-trigger",className:J(S(),"group",q),...B,children:[f," ",H(_,{className:"relative top-px ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function V({className:q,...f}){return H(G.Content,{"data-slot":"navigation-menu-content",className:J("data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out md:absolute md:w-auto","data-[state=closed]:group-data-[viewport=false]/navigation-menu:fade-out-0 data-[state=open]:group-data-[viewport=false]/navigation-menu:fade-in-0 data-[state=closed]:group-data-[viewport=false]/navigation-menu:zoom-out-95 data-[state=open]:group-data-[viewport=false]/navigation-menu:zoom-in-95 bg-background **:data-[slot=navigation-menu-link]:focus:outline-hidden **:data-[slot=navigation-menu-link]:focus:ring-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow-2xs group-data-[viewport=false]/navigation-menu:duration-200 data-[state=closed]:group-data-[viewport=false]/navigation-menu:animate-out data-[state=open]:group-data-[viewport=false]/navigation-menu:animate-in",q),...f})}function I({className:q,...f}){return H("div",{className:J("absolute top-full left-0 isolate z-50 flex justify-center"),children:H(G.Viewport,{"data-slot":"navigation-menu-viewport",className:J("data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full origin-top-center overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-2xs data-[state=closed]:animate-out data-[state=open]:animate-in md:w-(--radix-navigation-menu-viewport-width)",q),...f})})}function Q({className:q,...f}){return H(G.Link,{"data-slot":"navigation-menu-link",className:J("flex flex-col gap-1 rounded-xs p-2 text-sm outline-hidden transition-all hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50 data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",q),...f})}function C({className:q,...f}){return H(G.Indicator,{"data-slot":"navigation-menu-indicator",className:J("data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=visible]:animate-in",q),...f,children:H("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})}import{cn as K}from"@contractspec/lib.ui-kit-core/utils";import{cva as T}from"class-variance-authority";import*as W from"react";import{jsx as z,jsxs as O}from"react/jsx-runtime";var k=T("",{variants:{width:{sm:"w-[280px]",md:"w-[500px]",lg:"w-[900px]",full:"w-[calc(100vw-2rem)]"},padding:{none:"",sm:"p-2",md:"p-3"}},defaultVariants:{width:"lg",padding:"md"}});function m({width:q,padding:f,className:B,...E}){return z("div",{className:K(k({width:q,padding:f}),B),...E})}function p({title:q,items:f}){return O("div",{children:[q&&z("div",{className:"mb-2 font-semibold text-base",children:q}),z("ul",{className:"grid w-[280px] gap-2",children:f.map((B)=>z("li",{children:z(Q,{asChild:!0,children:O("a",{href:B.href,className:"block rounded-md p-2 hover:bg-accent",children:[z("div",{className:"font-medium text-base",children:B.label}),B.description&&z("div",{className:"line-clamp-2 text-muted-foreground text-sm",children:B.description})]})})},B.href))})]})}function l({columns:q}){return z("div",{className:"grid w-[500px] grid-cols-2 gap-3",children:q.map((f,B)=>O("div",{children:[f.title&&z("div",{className:"mb-2 font-semibold text-base text-muted-foreground",children:f.title}),z("ul",{className:"grid gap-2",children:f.items.map((E)=>z("li",{children:z(Q,{asChild:!0,children:O("a",{href:E.href,className:"block rounded-md p-2 hover:bg-accent",children:[z("div",{className:"font-medium text-base",children:E.label}),E.description&&z("div",{className:"line-clamp-2 text-muted-foreground text-sm",children:E.description})]})})},E.href))})]},B))})}function g({categories:q,modules:f,activeCategory:B,setActiveCategory:E,activeKey:L,setActiveKey:R,preview:X}){let Y=W.useMemo(()=>f.filter((F)=>B==="all"||F.categories.includes(B)),[f,B]);return O("div",{className:"flex items-start gap-3",children:[O("div",{className:"max-h-96 w-48 shrink-0 overflow-auto pr-1",children:[z("button",{className:`w-full rounded-md px-3 py-2 text-left text-base transition-colors hover:bg-muted ${B==="all"?"bg-muted":""}`,onMouseEnter:()=>E("all"),onFocus:()=>E("all"),onClick:()=>E("all"),children:"All"}),q.map((F)=>z("button",{className:`w-full rounded-md px-3 py-2 text-left text-base transition-colors hover:bg-muted ${B===F.key?"bg-muted":""}`,onMouseEnter:()=>E(F.key),onFocus:()=>E(F.key),onClick:()=>E(F.key),children:F.label},F.key))]}),z("div",{className:"grid max-h-96 flex-1 grid-cols-1 gap-1 overflow-auto pr-1",children:Y.map((F)=>z(Q,{asChild:!0,children:O("a",{href:`/modules/${F.key}`,className:"rounded-md px-3 py-2 text-left transition-colors hover:bg-muted",onMouseEnter:()=>R(F.key),onFocus:()=>R(F.key),children:[z("div",{className:"font-medium text-base",children:F.title}),F.description&&z("div",{className:"line-clamp-2 text-muted-foreground text-sm",children:F.description})]})},F.key))}),z("div",{className:"w-[320px] shrink-0",children:X})]})}export{k as navPanelVariants,b as NavTrigger,p as NavSimpleList,$ as NavRoot,m as NavPanel,D as NavList,Q as NavLink,P as NavItem,V as NavContent,l as NavColumns,g as NavCategorizedWithPreview};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
declare function NavigationMenu({ className, children, viewport, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
|
|
4
|
-
viewport?: boolean;
|
|
5
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function NavigationMenuList({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function NavigationMenuItem({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
-
declare function NavigationMenuTrigger({ className, children, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare function NavigationMenuContent({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
declare function NavigationMenuViewport({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
declare function NavigationMenuLink({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Link>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
declare function NavigationMenuIndicator({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle, };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var P=import.meta.require;import{cn as B}from"@contractspec/lib.ui-kit-core/utils";import*as f from"@radix-ui/react-navigation-menu";import{cva as H}from"class-variance-authority";import{ChevronDownIcon as J}from"lucide-react";import{jsx as A,jsxs as F}from"react/jsx-runtime";function X({className:q,children:z,viewport:E=!0,...G}){return F(f.Root,{"data-slot":"navigation-menu","data-viewport":E,className:B("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",q),...G,children:[z,E&&A(O,{})]})}function Y({className:q,...z}){return A(f.List,{"data-slot":"navigation-menu-list",className:B("group flex flex-1 list-none items-center justify-center gap-1",q),...z})}function Z({className:q,...z}){return A(f.Item,{"data-slot":"navigation-menu-item",className:B("relative",q),...z})}var K=H("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 font-medium text-sm outline-hidden transition-[color,box-shadow] hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:hover:bg-accent");function _({className:q,children:z,...E}){return F(f.Trigger,{"data-slot":"navigation-menu-trigger",className:B(K(),"group",q),...E,children:[z," ",A(J,{className:"relative top-px ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function $({className:q,...z}){return A(f.Content,{"data-slot":"navigation-menu-content",className:B("data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out md:absolute md:w-auto","data-[state=closed]:group-data-[viewport=false]/navigation-menu:fade-out-0 data-[state=open]:group-data-[viewport=false]/navigation-menu:fade-in-0 data-[state=closed]:group-data-[viewport=false]/navigation-menu:zoom-out-95 data-[state=open]:group-data-[viewport=false]/navigation-menu:zoom-in-95 bg-background **:data-[slot=navigation-menu-link]:focus:outline-hidden **:data-[slot=navigation-menu-link]:focus:ring-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow-2xs group-data-[viewport=false]/navigation-menu:duration-200 data-[state=closed]:group-data-[viewport=false]/navigation-menu:animate-out data-[state=open]:group-data-[viewport=false]/navigation-menu:animate-in",q),...z})}function O({className:q,...z}){return A("div",{className:B("absolute top-full left-0 isolate z-50 flex justify-center"),children:A(f.Viewport,{"data-slot":"navigation-menu-viewport",className:B("data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full origin-top-center overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-2xs data-[state=closed]:animate-out data-[state=open]:animate-in md:w-(--radix-navigation-menu-viewport-width)",q),...z})})}function b({className:q,...z}){return A(f.Link,{"data-slot":"navigation-menu-link",className:B("flex flex-col gap-1 rounded-xs p-2 text-sm outline-hidden transition-all hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50 data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",q),...z})}function D({className:q,...z}){return A(f.Indicator,{"data-slot":"navigation-menu-indicator",className:B("data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=visible]:animate-in",q),...z,children:A("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})}export{K as navigationMenuTriggerStyle,O as NavigationMenuViewport,_ as NavigationMenuTrigger,Y as NavigationMenuList,b as NavigationMenuLink,Z as NavigationMenuItem,D as NavigationMenuIndicator,$ as NavigationMenuContent,X as NavigationMenu};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface ErrorBoundaryState {
|
|
3
|
-
hasError: boolean;
|
|
4
|
-
error: Error | null;
|
|
5
|
-
errorId: string | null;
|
|
6
|
-
}
|
|
7
|
-
interface ErrorBoundaryProps {
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
fallback?: React.ComponentType<ErrorFallbackProps>;
|
|
10
|
-
onError?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
11
|
-
}
|
|
12
|
-
interface ErrorFallbackProps {
|
|
13
|
-
error: Error;
|
|
14
|
-
errorId: string | null;
|
|
15
|
-
resetError: () => void;
|
|
16
|
-
}
|
|
17
|
-
export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
18
|
-
constructor(props: ErrorBoundaryProps);
|
|
19
|
-
static getDerivedStateFromError(error: Error): Partial<ErrorBoundaryState>;
|
|
20
|
-
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
21
|
-
resetError: () => void;
|
|
22
|
-
render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
23
|
-
}
|
|
24
|
-
export declare const useErrorHandler: () => (error: Error) => never;
|
|
25
|
-
export type { ErrorBoundaryProps, ErrorFallbackProps };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var z=import.meta.require;import{cn as X}from"@contractspec/lib.ui-kit-core/utils";import{Slot as Y}from"@radix-ui/react-slot";import{cva as Z}from"class-variance-authority";import*as P from"react";import{jsx as $}from"react/jsx-runtime";var _=Z("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"}}),M=P.forwardRef(({className:q,variant:J,size:K,asChild:O=!1,...U},W)=>{return $(O?Y:"button",{ref:W,"data-slot":"button",className:X(_({variant:J,size:K,className:q})),...U})});M.displayName="Button";import{AlertTriangle as A,Home as D,RefreshCw as H}from"lucide-react";import Q from"react";import{jsx as G,jsxs as L}from"react/jsx-runtime";var S=({error:q,errorId:J,resetError:K})=>{return G("div",{className:"flex min-h-screen items-center justify-center bg-gray-50 px-4",children:L("div",{className:"w-full max-w-md rounded-lg bg-white p-6 text-center shadow-lg",children:[G("div",{className:"mb-4 flex justify-center",children:G(A,{className:"h-12 w-12 text-red-500"})}),G("h1",{className:"mb-2 font-semibold text-2xl text-gray-900",children:"Une erreur s'est produite"}),G("p",{className:"mb-6 text-gray-600",children:"Nous nous excusons pour ce d\xE9sagr\xE9ment. Notre \xE9quipe a \xE9t\xE9 notifi\xE9e et travaille \xE0 r\xE9soudre le probl\xE8me."}),!1,L("div",{className:"flex flex-col justify-center gap-3 sm:flex-row",children:[L(M,{onClick:K,className:"flex items-center gap-2",children:[G(H,{className:"h-4 w-4"}),"R\xE9essayer"]}),L(M,{onClick:()=>window.location.href="/",variant:"secondary",className:"flex items-center gap-2",children:[G(D,{className:"h-4 w-4"}),"Accueil"]})]}),J&&L("p",{className:"mt-4 text-gray-500 text-sm",children:["Code d'erreur: ",J]})]})})};class g extends Q.Component{constructor(q){super(q);this.state={hasError:!1,error:null,errorId:null}}static getDerivedStateFromError(q){return{hasError:!0,error:q}}componentDidCatch(q,J){let K=`err_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;this.setState({errorId:K}),this.props.onError?.(q,J)}resetError=()=>{this.setState({hasError:!1,error:null,errorId:null})};render(){if(this.state.hasError&&this.state.error){let q=this.props.fallback||S;return G(q,{error:this.state.error,errorId:this.state.errorId,resetError:this.resetError})}return this.props.children}}var B=()=>{return Q.useCallback((q)=>{throw q},[])};export{B as useErrorHandler,g as ErrorBoundary};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { ListPageProps } from './types';
|
|
2
|
-
export declare function ListPage<T>({ title, description, header, items, totalItems, totalPages, isLoading, isFetching, error, listState, searchPlaceholder, filters, onRefresh, primaryAction, toolbar, renderItem, renderEmpty, renderStats, className, itemClassName, }: ListPageProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var bv=import.meta.require;import{cn as F1}from"@contractspec/lib.ui-kit-core/utils";import{Slot as u1}from"@radix-ui/react-slot";import{cva as N1}from"class-variance-authority";import*as $1 from"react";import{jsx as y1}from"react/jsx-runtime";var k1=N1("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"}}),J=$1.forwardRef(({className:v,variant:w,size:R,asChild:T=!1,...G},_)=>{return y1(T?u1:"button",{ref:_,"data-slot":"button",className:F1(k1({variant:w,size:R,className:v})),...G})});J.displayName="Button";import{cn as C1}from"@contractspec/lib.ui-kit-core/utils";import*as z1 from"@radix-ui/react-label";import{jsx as V1}from"react/jsx-runtime";function G1({className:v,...w}){return V1(z1.Root,{"data-slot":"label",className:C1("flex select-none items-center gap-2 font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",v),...w})}import{cn as U}from"@contractspec/lib.ui-kit-core/utils";import*as z from"@radix-ui/react-select";import{CheckIcon as S1,ChevronDownIcon as M1,ChevronUpIcon as L1}from"lucide-react";import{jsx as K,jsxs as j}from"react/jsx-runtime";function A({...v}){return K(z.Root,{"data-slot":"select",...v})}function Ov({...v}){return K(z.Group,{"data-slot":"select-group",...v})}function g({...v}){return K(z.Value,{"data-slot":"select-value",...v})}function d({className:v,size:w="default",children:R,...T}){return j(z.Trigger,{"data-slot":"select-trigger","data-size":w,className:U("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",v),...T,children:[R,K(z.Icon,{asChild:!0,children:K(M1,{className:"size-4 opacity-50"})})]})}function l({className:v,children:w,position:R="popper",...T}){return K(z.Portal,{children:j(z.Content,{"data-slot":"select-content",className:U("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",R==="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",v),position:R,...T,children:[K(P1,{}),K(z.Viewport,{className:U("p-1",R==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:w}),K(h1,{})]})})}function Wv({className:v,...w}){return K(z.Label,{"data-slot":"select-label",className:U("px-2 py-1.5 text-muted-foreground text-xs",v),...w})}function S({className:v,children:w,...R}){return j(z.Item,{"data-slot":"select-item",className:U("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",v),...R,children:[K("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:K(z.ItemIndicator,{children:K(S1,{className:"size-4"})})}),K(z.ItemText,{children:w})]})}function Yv({className:v,...w}){return K(z.Separator,{"data-slot":"select-separator",className:U("pointer-events-none -mx-1 my-1 h-px bg-border",v),...w})}function P1({className:v,...w}){return K(z.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:U("flex cursor-default items-center justify-center py-1",v),...w,children:K(L1,{className:"size-4"})})}function h1({className:v,...w}){return K(z.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:U("flex cursor-default items-center justify-center py-1",v),...w,children:K(M1,{className:"size-4"})})}import{jsx as L,jsxs as f}from"react/jsx-runtime";var i=({value:v,options:w,onChange:R,placeholder:T="S\xE9lectionner...",label:G,disabled:_=!1,className:M="",showCounts:W=!1})=>{return f("div",{className:`space-y-2 ${M}`,children:[G&&L(G1,{className:"font-medium text-base text-foreground",children:G}),f(A,{value:v,onValueChange:R,disabled:_,children:[L(d,{className:"w-full",children:L(g,{placeholder:T})}),f(l,{className:"bg-background",children:[f(S,{value:"all",children:["Tous",W&&f("span",{className:"ml-2 text-muted-foreground text-sm",children:["(",w.reduce((O,D)=>O+(D.count||0),0),")"]})]}),w.map((O)=>L(S,{value:O.value,children:f("div",{className:"flex w-full items-center justify-between",children:[L("span",{children:O.label}),W&&O.count!==void 0&&f("span",{className:"ml-2 text-muted-foreground text-sm",children:["(",O.count,")"]})]})},O.value))]})]})]})};import{ChevronLeft as A1,ChevronRight as g1,ChevronsLeft as d1,ChevronsRight as l1}from"lucide-react";import{jsx as Y,jsxs as Q}from"react/jsx-runtime";var r=({currentPage:v,totalPages:w,totalItems:R,itemsPerPage:T,onPageChange:G,onItemsPerPageChange:_,disabled:M=!1,className:W="",showItemsPerPage:O=!0,itemsPerPageOptions:D=[10,25,50,100]})=>{let V=(v-1)*T+1,u=Math.min(v*T,R),I=v>1&&!M,q=v<w&&!M,N=()=>{if(w<=7)return Array.from({length:w},($,H)=>H+1);if(v<=3)return[1,2,3,4,5,-1,w];if(v>=w-2)return[1,-1,w-4,w-3,w-2,w-1,w];return[1,-1,v-1,v,v+1,-1,w]};if(w===0)return null;return Q("div",{className:`flex flex-col items-center justify-between gap-4 sm:flex-row ${W}`,children:[Q("div",{className:"order-2 text-base text-muted-foreground sm:order-1",children:["Affichage de ",V," \xE0 ",u," sur ",R," r\xE9sultats"]}),Q("div",{className:"order-1 flex items-center gap-2 sm:order-2",children:[Q(J,{variant:"outline",size:"sm",onClick:()=>G(1),disabled:!I,className:"hidden h-8 w-8 p-0 sm:flex",children:[Y(d1,{className:"h-4 w-4"}),Y("span",{className:"sr-only",children:"Premi\xE8re page"})]}),Q(J,{variant:"outline",size:"sm",onClick:()=>G(v-1),disabled:!I,className:"h-8 w-8 p-0",children:[Y(A1,{className:"h-4 w-4"}),Y("span",{className:"sr-only",children:"Page pr\xE9c\xE9dente"})]}),Y("div",{className:"flex items-center gap-1",children:N().map(($,H)=>{if($===-1)return Y("span",{className:"px-2 py-1 text-muted-foreground",children:"..."},`ellipsis-${H}`);return Y(J,{variant:$===v?"default":"outline",size:"sm",onClick:()=>G($),disabled:M,className:"h-8 min-w-8 px-2",children:$},$)})}),Q(J,{variant:"outline",size:"sm",onClick:()=>G(v+1),disabled:!q,className:"h-8 w-8 p-0",children:[Y(g1,{className:"h-4 w-4"}),Y("span",{className:"sr-only",children:"Page suivante"})]}),Q(J,{variant:"outline",size:"sm",onClick:()=>G(w),disabled:!q,className:"hidden h-8 w-8 p-0 sm:flex",children:[Y(l1,{className:"h-4 w-4"}),Y("span",{className:"sr-only",children:"Derni\xE8re page"})]})]}),O&&_&&Q("div",{className:"order-3 flex items-center gap-2 text-base",children:[Y("span",{className:"text-muted-foreground",children:"Afficher:"}),Q(A,{value:T.toString(),onValueChange:($)=>_(parseInt($)),disabled:M,children:[Y(d,{className:"h-8 w-16",children:Y(g,{})}),Y(l,{className:"bg-background",children:D.map(($)=>Y(S,{value:$.toString(),children:$},$))})]})]})]})};import{cn as p1}from"@contractspec/lib.ui-kit-core/utils";import{jsx as n1}from"react/jsx-runtime";function X1({className:v,type:w,ref:R,...T}){return n1("input",{ref:R,type:w,"data-slot":"input",className:p1("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",v),...T})}import{Search as o1,X as e1}from"lucide-react";import{jsx as k,jsxs as _1}from"react/jsx-runtime";var a=({value:v,onChange:w,placeholder:R="Rechercher...",onClear:T,disabled:G=!1,className:_="",autoFocus:M=!1})=>{let W=()=>{w(""),T?.()};return _1("div",{className:`relative w-full ${_}`,children:[k("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:k(o1,{className:"h-4 w-4 text-muted-foreground"})}),k(X1,{type:"text",value:v,onChange:(O)=>w(O.target.value),placeholder:R,disabled:G,autoFocus:M,className:"pr-10 pl-10"}),v&&k("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3",children:_1(J,{type:"button",variant:"ghost",size:"sm",onClick:W,disabled:G,className:"h-6 w-6 p-0 hover:bg-transparent",children:[k(e1,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),k("span",{className:"sr-only",children:"Effacer la recherche"})]})})]})};import{cn as B}from"@contractspec/lib.ui-kit-core/utils";import{jsx as m}from"react/jsx-runtime";function p({className:v,...w}){return m("div",{"data-slot":"card",className:B("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-2xs",v),...w})}function nv({className:v,...w}){return m("div",{"data-slot":"card-header",className:B("@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",v),...w})}function ov({className:v,...w}){return m("div",{"data-slot":"card-title",className:B("font-semibold leading-none",v),...w})}function ev({className:v,...w}){return m("div",{"data-slot":"card-description",className:B("text-muted-foreground text-sm",v),...w})}function xv({className:v,...w}){return m("div",{"data-slot":"card-action",className:B("col-start-2 row-span-2 row-start-1 self-start justify-self-end",v),...w})}function n({className:v,...w}){return m("div",{"data-slot":"card-content",className:B("px-6",v),...w})}function cv({className:v,...w}){return m("div",{"data-slot":"card-footer",className:B("flex items-center px-6 [.border-t]:pt-6",v),...w})}import*as y from"@radix-ui/react-collapsible";import{jsx as s}from"react/jsx-runtime";function q1({...v}){return s(y.Root,{"data-slot":"collapsible",...v})}function J1({...v}){return s(y.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...v})}function K1({...v}){return s(y.CollapsibleContent,{"data-slot":"collapsible-content",...v})}import{cn as v1}from"@contractspec/lib.ui-kit-core/utils";import{cva as w1}from"class-variance-authority";import{jsx as R1}from"react/jsx-runtime";var x1=w1("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 F({className:v,gap:w,align:R,justify:T,as:G="div",ref:_,...M}){return R1(G,{ref:_,className:v1(x1({gap:w,align:R,justify:T}),v),...M})}var c1=w1("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 b1({className:v,gap:w,align:R,justify:T,wrap:G,as:_="div",ref:M,...W}){return R1(_,{ref:M,className:v1(c1({gap:w,align:R,justify:T,wrap:G}),v),...W})}var t1=w1("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 v0({className:v,gap:w,align:R,justify:T,wrap:G,as:_="div",ref:M,...W}){return R1(_,{ref:M,className:v1(t1({gap:w,align:R,justify:T,wrap:G}),v),...W})}import{cn as j1}from"@contractspec/lib.ui-kit-core/utils";import*as O1 from"@radix-ui/react-separator";import{jsx as i1}from"react/jsx-runtime";function W1({className:v,orientation:w="horizontal",decorative:R=!0,...T}){return i1(O1.Root,{"data-slot":"separator",decorative:R,orientation:w,className:j1("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",v),...T})}import{ChevronDown as r1,ChevronUp as a1,Filter as s1}from"lucide-react";import{useState as vv}from"react";import{jsx as Z,jsxs as C}from"react/jsx-runtime";var T1=({searchValue:v,onSearchChange:w,searchPlaceholder:R,filters:T=[],isLoading:G=!1,disabled:_=!1,className:M="",collapsible:W=!0,defaultCollapsed:O=!1})=>{let[D,V]=vv(O),u=T.length>0,I=T.filter(($)=>$.value).length,q=W&&u,N=()=>Z("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:T.map(($)=>Z(i,{value:$.value,options:$.options,onChange:$.onChange,label:$.label,disabled:_||G,showCounts:$.showCounts,className:"min-w-0"},$.key))});return C("div",{className:`space-y-4 ${M}`,children:[C("div",{className:"flex flex-col gap-4 sm:flex-row",children:[Z("div",{className:"flex-1",children:Z(a,{value:v,onChange:w,placeholder:R,disabled:_||G,className:"w-full"})}),q&&C(q1,{open:!D,onOpenChange:V,className:"sm:hidden",children:[Z(J1,{asChild:!0,children:C(J,{variant:"outline",className:"sm:hidden",disabled:_||G,children:[Z(s1,{className:"mr-2 h-4 w-4"}),"Filtres",I>0&&Z("span",{className:"ml-2 flex h-5 w-5 items-center justify-center rounded-full bg-primary text-primary-foreground text-sm",children:I}),D?Z(r1,{className:"ml-2 h-4 w-4"}):Z(a1,{className:"ml-2 h-4 w-4"})]})}),Z(K1,{className:"mt-4 space-y-4",children:Z(N,{})})]})]}),u&&Z("div",{className:"hidden sm:block",children:Z(N,{})}),I>0&&C("div",{className:"flex flex-wrap items-center gap-2",children:[Z("span",{className:"text-base text-muted-foreground",children:"Filtres actifs:"}),T.filter(($)=>$.value).map(($)=>{let H=$.options.find((P)=>P.value===$.value);return C(J,{variant:"secondary",size:"sm",onClick:()=>$.onChange(""),disabled:_||G,className:"h-7 px-2 text-sm",children:[$.label,": ",H?.label,Z("span",{className:"ml-1",children:"\xD7"})]},$.key)})]})]})};import{AlertTriangle as wv,Loader2 as Y1,Plus as o,RefreshCcw as Z1}from"lucide-react";import E1 from"next/link";import{jsx as b,jsxs as X,Fragment as e}from"react/jsx-runtime";function B0({title:v,description:w,header:R,items:T,totalItems:G,totalPages:_,isLoading:M,isFetching:W,error:O,listState:D,searchPlaceholder:V,filters:u=[],onRefresh:I,primaryAction:q,toolbar:N,renderItem:$,renderEmpty:H,renderStats:P,className:x="",itemClassName:I1=""}){let{searchQuery:c,setSearchQuery:Q1,filters:t,setFilter:D1,currentPage:H1,itemsPerPage:U1,setCurrentPage:f1,setItemsPerPage:B1}=D;if(M&&!T.length)return X(F,{className:`space-y-4 md:space-y-6 ${x}`,children:[R?R:X(F,{className:"gap-1",children:[b("h1",{className:"font-bold text-2xl md:text-3xl",children:v}),w&&b("p",{className:"text-base text-muted-foreground",children:w})]}),b("div",{className:"flex min-h-[400px] items-center justify-center",children:b(p,{children:X(n,{className:"flex items-center gap-4 p-6",children:[b(Y1,{className:"h-8 w-8 animate-spin text-primary"}),X("div",{children:[b("h3",{className:"font-medium",children:"Chargement..."}),b("p",{className:"text-base text-muted-foreground",children:"R\xE9cup\xE9ration des donn\xE9es en cours"})]})]})})})]});if(O&&!T.length)return X(F,{className:`space-y-4 md:space-y-6 ${x}`,children:[R?R:X(F,{className:"gap-1",children:[b("h1",{className:"font-bold text-2xl md:text-3xl",children:v}),w&&b("p",{className:"text-base text-muted-foreground",children:w})]}),b("div",{className:"flex min-h-[400px] items-center justify-center",children:b(p,{children:X(n,{className:"flex flex-col items-center gap-4 p-6 text-center",children:[b(wv,{className:"h-12 w-12 text-destructive"}),X("div",{children:[b("h3",{className:"font-medium",children:"Erreur de chargement"}),b("p",{className:"text-base text-muted-foreground",children:O.message||"Une erreur est survenue"})]}),I&&X(J,{onClick:I,variant:"outline",size:"sm",children:[b(Z1,{className:"mr-2 h-4 w-4"}),"R\xE9essayer"]})]})})})]});let m1=u.map((E)=>({key:E.key,label:E.label,value:t[E.key]||"",options:E.options,onChange:(h)=>{D1(E.key,h==="all"?"":h||"")},showCounts:E.showCounts}));return X(F,{className:`space-y-4 md:space-y-6 ${x}`,children:[R?R:X(b1,{className:"items-center justify-between",children:[X(F,{className:"gap-1",children:[b("h1",{className:"font-bold text-2xl md:text-3xl",children:v}),w&&b("p",{className:"text-base text-muted-foreground",children:w})]}),X(b1,{className:"items-center gap-4",children:[N,(M||W)&&X("div",{className:"flex items-center gap-2 text-base text-muted-foreground",children:[b(Y1,{className:"h-4 w-4 animate-spin"}),b("span",{className:"hidden sm:inline",children:"Mise \xE0 jour..."})]}),I&&X(J,{variant:"outline",size:"sm",onClick:I,disabled:Boolean(M),"aria-label":"Rafra\xEEchir",children:[b(Z1,{className:`mr-2 h-4 w-4 ${M||W?"animate-spin":""}`}),b("span",{className:"hidden sm:inline",children:"Rafra\xEEchir"})]}),q&&b(e,{children:q.href?b(E1,{href:q.href,children:X(J,{children:[q.icon||b(o,{className:"mr-2 h-4 w-4"}),b("span",{className:"hidden sm:inline",children:q.label}),b("span",{className:"sm:hidden",children:"Nouveau"})]})}):X(J,{onClick:q.onClick,children:[q.icon||b(o,{className:"mr-2 h-4 w-4"}),b("span",{className:"hidden sm:inline",children:q.label}),b("span",{className:"sm:hidden",children:"Nouveau"})]})})]})]}),P&&X(e,{children:[P(T),b(W1,{})]}),b(T1,{searchValue:c,onSearchChange:Q1,searchPlaceholder:V,filters:m1,isLoading:M}),T.length===0&&!M?H?H():b(p,{children:X(n,{className:"flex flex-col items-center gap-4 p-8 text-center",children:[b("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-muted",children:b("div",{className:"h-6 w-6 rounded-full bg-muted-foreground/20"})}),X("div",{children:[b("h3",{className:"font-medium",children:"Aucun \xE9l\xE9ment trouv\xE9"}),b("p",{className:"text-base text-muted-foreground",children:c||Object.values(t).some((E)=>E)?"Essayez de modifier vos crit\xE8res de recherche":"Commencez par cr\xE9er votre premier \xE9l\xE9ment"})]}),q&&!c&&!Object.values(t).some((E)=>E)&&b(e,{children:q.href?b(E1,{href:q.href,children:X(J,{children:[q.icon||b(o,{className:"mr-2 h-4 w-4"}),q.label]})}):X(J,{onClick:q.onClick,children:[q.icon||b(o,{className:"mr-2 h-4 w-4"}),q.label]})})]})}):X(e,{children:[b("div",{className:`space-y-4 ${I1}`,children:T.map((E,h)=>$(E,h))}),_>1&&b(r,{currentPage:H1,totalPages:_,totalItems:G,itemsPerPage:U1,onPageChange:f1,onItemsPerPageChange:B1,disabled:M})]})]})}export{B0 as ListPage};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { SharedListPageProps } from '@contractspec/lib.ui-kit-core/interfaces';
|
|
2
|
-
import type { FilterOption } from '@contractspec/lib.ui-kit-web/ui/atoms/FilterSelect';
|
|
3
|
-
import type { ReactNode } from 'react';
|
|
4
|
-
import type { UseListStateReturn } from '../../useListState';
|
|
5
|
-
export interface ListPageFilter {
|
|
6
|
-
key: string;
|
|
7
|
-
label: string;
|
|
8
|
-
options: FilterOption[];
|
|
9
|
-
showCounts?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface ListPageProps<T = unknown> extends SharedListPageProps<T> {
|
|
12
|
-
title: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
header?: ReactNode;
|
|
15
|
-
items: T[];
|
|
16
|
-
totalItems: number;
|
|
17
|
-
totalPages: number;
|
|
18
|
-
isLoading: boolean;
|
|
19
|
-
isFetching?: boolean;
|
|
20
|
-
error?: Error | null;
|
|
21
|
-
listState: UseListStateReturn;
|
|
22
|
-
searchPlaceholder?: string;
|
|
23
|
-
filters?: ListPageFilter[];
|
|
24
|
-
onRefresh?: () => void;
|
|
25
|
-
primaryAction?: {
|
|
26
|
-
label: string;
|
|
27
|
-
href?: string;
|
|
28
|
-
onClick?: () => void;
|
|
29
|
-
icon?: ReactNode;
|
|
30
|
-
};
|
|
31
|
-
toolbar?: ReactNode;
|
|
32
|
-
renderItem: (item: T, index: number) => ReactNode;
|
|
33
|
-
renderEmpty?: () => ReactNode;
|
|
34
|
-
renderStats?: (items: T[]) => ReactNode;
|
|
35
|
-
className?: string;
|
|
36
|
-
itemClassName?: string;
|
|
37
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// @bun
|
package/dist/ui/page-header.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { SharedPageHeaderProps } from '@contractspec/lib.ui-kit-core/interfaces';
|
|
2
|
-
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
-
declare const headerVariants: (props?: ({
|
|
4
|
-
spacing?: "sm" | "lg" | "md" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
-
export interface PageHeaderProps extends SharedPageHeaderProps, VariantProps<typeof headerVariants> {
|
|
7
|
-
}
|
|
8
|
-
export declare function PageHeader({ breadcrumb, title, subtitle, actions, spacing, className, }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
package/dist/ui/page-header.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var Z=import.meta.require;import{cn as I}from"@contractspec/lib.ui-kit-core/utils";import{cva as J}from"class-variance-authority";import{jsx as L}from"react/jsx-runtime";var R=J("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 K({className:A,gap:C,align:q,justify:z,as:D="div",ref:E,...F}){return L(D,{ref:E,className:I(R({gap:C,align:q,justify:z}),A),...F})}var T=J("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 P({className:A,gap:C,align:q,justify:z,wrap:D,as:E="div",ref:F,...G}){return L(E,{ref:F,className:I(T({gap:C,align:q,justify:z,wrap:D}),A),...G})}var U=J("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 H({className:A,gap:C,align:q,justify:z,wrap:D,as:E="div",ref:F,...G}){return L(E,{ref:F,className:I(U({gap:C,align:q,justify:z,wrap:D}),A),...G})}import{cn as W}from"@contractspec/lib.ui-kit-core/utils";import{cva as X}from"class-variance-authority";import{jsx as M,jsxs as O}from"react/jsx-runtime";var Y=X("",{variants:{spacing:{sm:"gap-1",md:"gap-2",lg:"gap-3"}},defaultVariants:{spacing:"md"}});function N({breadcrumb:A,title:C,subtitle:q,actions:z,spacing:D,className:E}){return O(K,{className:W(Y({spacing:D}),E),children:[A,O(P,{className:"flex-col items-start justify-between md:flex-row",children:[O(K,{className:"gap-1",children:[M("h1",{className:"font-semibold text-2xl md:text-3xl",children:C}),q?M("p",{className:"text-base text-muted-foreground",children:q}):null]}),z?M("div",{className:"flex items-center gap-2",children:z}):null]})]})}export{N as PageHeader};
|
package/dist/ui/pagination.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { type ButtonProps } from './button';
|
|
3
|
-
declare function Pagination({ className, ...props }: React.ComponentPropsWithoutRef<'nav'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function PaginationContent({ className, ref, ...props }: React.ComponentPropsWithoutRef<'ul'> & {
|
|
5
|
-
ref?: React.Ref<HTMLUListElement>;
|
|
6
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function PaginationItem({ className, ref, ...props }: React.ComponentPropsWithoutRef<'li'> & {
|
|
8
|
-
ref?: React.Ref<HTMLLIElement>;
|
|
9
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
type PaginationLinkProps = {
|
|
11
|
-
isActive?: boolean;
|
|
12
|
-
} & Pick<ButtonProps, 'size'> & React.ComponentPropsWithoutRef<'a'>;
|
|
13
|
-
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
declare function PaginationEllipsis({ className, ...props }: React.ComponentPropsWithoutRef<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
|
package/dist/ui/pagination.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var P=import.meta.require;import{cn as B}from"@contractspec/lib.ui-kit-core/utils";import{Slot as H}from"@radix-ui/react-slot";import{cva as d}from"class-variance-authority";import*as E from"react";import{jsx as A}from"react/jsx-runtime";var X=d("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"}}),w=E.forwardRef(({className:D,variant:q,size:F,asChild:J=!1,...K},O)=>{return A(J?H:"button",{ref:O,"data-slot":"button",className:B(X({variant:q,size:F,className:D})),...K})});w.displayName="Button";import{cn as Y}from"@contractspec/lib.ui-kit-core/utils";import{cva as Z}from"class-variance-authority";import{jsx as _}from"react/jsx-runtime";var L=Z("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 x({className:D,gap:q,align:F,justify:J,as:K="div",ref:O,...T}){return _(K,{ref:O,className:Y(L({gap:q,align:F,justify:J}),D),...T})}var W=Z("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 I({className:D,gap:q,align:F,justify:J,wrap:K,as:O="div",ref:T,...U}){return _(O,{ref:T,className:Y(W({gap:q,align:F,justify:J,wrap:K}),D),...U})}var z=Z("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 j({className:D,gap:q,align:F,justify:J,wrap:K,as:O="div",ref:T,...U}){return _(O,{ref:T,className:Y(z({gap:q,align:F,justify:J,wrap:K}),D),...U})}import{cn as Q}from"@contractspec/lib.ui-kit-core/utils";import{ChevronLeft as C,ChevronRight as y,MoreHorizontal as b}from"lucide-react";import{jsx as G,jsxs as $}from"react/jsx-runtime";function n({className:D,...q}){return G(I,{as:"nav",role:"navigation","aria-label":"pagination",justify:"center",wrap:"nowrap",className:Q("mx-auto w-full",D),...q})}function c({className:D,ref:q,...F}){return G("ul",{ref:q,className:Q(W({align:"center",gap:"xs",wrap:"nowrap"}),D),...F})}function r({className:D,ref:q,...F}){return G("li",{ref:q,className:Q("",D),...F})}function M({className:D,isActive:q,size:F="icon",...J}){return G("a",{"aria-current":q?"page":void 0,className:Q(X({variant:q?"outline":"ghost",size:F}),D),...J})}function i({className:D,...q}){return $(M,{"aria-label":"Go to previous page",size:"default",className:Q("gap-1 pl-2.5",D),...q,children:[G(C,{className:"h-4 w-4"}),G("span",{children:"Previous"})]})}function t({className:D,...q}){return $(M,{"aria-label":"Go to next page",size:"default",className:Q("gap-1 pr-2.5",D),...q,children:[G("span",{children:"Next"}),G(y,{className:"h-4 w-4"})]})}function s({className:D,...q}){return $("span",{"aria-hidden":!0,className:Q(W({align:"center",gap:"none",justify:"center",wrap:"nowrap"}),"h-9 w-9",D),...q,children:[G(b,{className:"h-4 w-4"}),G("span",{className:"sr-only",children:"More pages"})]})}export{i as PaginationPrevious,t as PaginationNext,M as PaginationLink,r as PaginationItem,s as PaginationEllipsis,c as PaginationContent,n as Pagination};
|
package/dist/ui/popover.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
package/dist/ui/popover.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var F=import.meta.require;import{cn as E}from"@contractspec/lib.ui-kit-core/utils";import*as q from"@radix-ui/react-popover";import{jsx as y}from"react/jsx-runtime";function I({...w}){return y(q.Root,{"data-slot":"popover",...w})}function J({...w}){return y(q.Trigger,{"data-slot":"popover-trigger",...w})}function K({className:w,align:z="center",sideOffset:B=4,...D}){return y(q.Portal,{children:y(q.Content,{"data-slot":"popover-content",align:z,sideOffset:B,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 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",w),...D})})}function L({...w}){return y(q.Anchor,{"data-slot":"popover-anchor",...w})}export{J as PopoverTrigger,K as PopoverContent,L as PopoverAnchor,I as Popover};
|
package/dist/ui/progress.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export { Progress };
|
package/dist/ui/progress.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var A=import.meta.require;import{cn as z}from"@contractspec/lib.ui-kit-core/utils";import*as f from"@radix-ui/react-progress";import{jsx as h}from"react/jsx-runtime";function D({className:q,value:w,...y}){return h(f.Root,{"data-slot":"progress",className:z("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",q),...y,children:h(f.Indicator,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(w||0)}%)`}})})}export{D as Progress};
|
package/dist/ui/radio-group.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export { RadioGroup, RadioGroupItem };
|
package/dist/ui/radio-group.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var z=import.meta.require;import{cn as w}from"@contractspec/lib.ui-kit-core/utils";import*as f from"@radix-ui/react-radio-group";import{CircleIcon as y}from"lucide-react";import{jsx as h}from"react/jsx-runtime";function E({className:q,...v}){return h(f.Root,{"data-slot":"radio-group",className:w("grid gap-3",q),...v})}function F({className:q,...v}){return h(f.Item,{"data-slot":"radio-group-item",className:w("aspect-square size-4 shrink-0 rounded-full border border-input text-primary 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 dark:bg-input/30 dark:aria-invalid:ring-destructive/40",q),...v,children:h(f.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:h(y,{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary"})})})}export{F as RadioGroupItem,E as RadioGroup};
|
package/dist/ui/resizable.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { GroupProps, SeparatorProps } from 'react-resizable-panels';
|
|
2
|
-
import { Panel } from 'react-resizable-panels';
|
|
3
|
-
declare const ResizablePanelGroup: ({ className, ...props }: GroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const ResizablePanel: typeof Panel;
|
|
5
|
-
declare const ResizableHandle: ({ withHandle, className, ...props }: SeparatorProps & {
|
|
6
|
-
withHandle?: boolean;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
package/dist/ui/resizable.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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};
|
|
@@ -1,2 +0,0 @@
|
|
|
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};
|
package/dist/ui/scroll-area.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
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 };
|
package/dist/ui/scroll-area.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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};
|
package/dist/ui/section.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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 };
|
package/dist/ui/section.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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};
|
package/dist/ui/select.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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, };
|
package/dist/ui/select.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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};
|
package/dist/ui/select.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/ui/separator.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
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 };
|
package/dist/ui/separator.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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};
|
package/dist/ui/sheet.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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};
|
package/dist/ui/sidebar.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
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, };
|